package com.yan.design.two.structure.s5;

/**
 * 5. 外观模式
 *      PoP类
 * @author shengren.yan
 * @create 2022-07-31
 */
public class PoP {

    // 饿汉式 创建类
    private static PoP instance = new PoP();

    private PoP(){ }

    public void on(){
        System.out.println("  PoP on ");
    }

    public void off(){
        System.out.println("  PoP off ");
    }

    public static PoP getObj(){
        return instance;
    }

}
